<!DOCTYPE html>
<html lang="en" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/css/custom.form.css">
</head>
<body>
<div class="panel panel-default operation" hidden>
    <div class="panel-heading title"></div>
    <div class="layui-card-body">
        <form class="layui-form " action="" lay-filter="info" style="width: 700px;margin-top: 10px">
            <input name="id" hidden/>

            <div class="layui-form-item">
                <label class="layui-form-label">门店全称</label>
                <div class="layui-input-block">
                    <input type="storeName" name="storeName" placeholder="请输入门店全称" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">门店简称</label>
                <div class="layui-input-block">
                    <input type="storeNames" name="storeNames" placeholder="请输入门店简称" autocomplete="off"
                           class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">店主名称</label>
                <div class="layui-input-block">
                    <input type="realName" name="realName" placeholder="请输入店主名称" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">联系号码</label>
                <div class="layui-input-block">
                    <input type="phone" name="phone" placeholder="请输入联系号码" autocomplete="off"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">选择地区</label>
                <div class="layui-input-inline" style="width: 170px;">
                    <select name="province" lay-filter="province" layer_data="贵州省" lay-search>
                        <option value="">请选择省</option>
                    </select>
                </div>
                <div class="layui-input-inline" style="width: 170px;">
                    <select name="city" lay-filter="city" layer_data="铜仁市" lay-search>
                        <option value="">请选择市</option>
                    </select>
                </div>
                <div class="layui-input-inline" style="width: 170px;">
                    <select name="area" lay-filter="area" layer_data="万山区" lay-search>
                        <option value="">请选择县/区</option>
                    </select>
                </div>

            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">详细地址</label>
                <div class="layui-input-block">
                    <input type="address" name="address" placeholder="请输入地址" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">门店简介</label>
                <div class="layui-input-block">
                    <!--<input type="storeMsg" name="storeMsg" placeholder="请输入门店简介" autocomplete="off" class="layui-input">-->
                    <textarea type="storeMsg" name="storeMsg" placeholder="请输入门店简介，门店经营范围，产品关键字" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn" lay-submit="" lay-filter="submit">保存</button>
                    <button class="layui-btn layui-btn-primary" id="btn_cancel">返回</button>
                </div>
            </div>
        </form>
    </div>
</div>

<div class="table_div">
    <div id="searchParam" shiro:hasPermission="sysStore:list">
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <input type="text" id="key" class="layui-input" autocomplete="off" placeholder="请输入">
            </div>

            <div class="layui-input-inline ">
                <button class="layui-btn" onclick="search()" id="search">查询</button>
            </div>
        </div>

    </div>
    <table class="layui-table" id="showTable" lay-filter="showTable"></table>
</div>
<script type="text/html" id="toolbar">
    <div class="layui-btn-container">

        <button class="layui-btn layui-btn-sm" lay-event="add" shiro:hasPermission="sysStore:addStore">添加</button>

        <!--<button class="layui-btn layui-btn-sm" lay-event="add" shiro:hasPermission="sysStore:add">添加</button>-->
        <!--<button class="layui-btn layui-btn-sm" lay-event="batchDeleted" shiro:hasPermission="sysStore:delete">删除</button>-->
        <button class="layui-btn layui-btn-sm" lay-event="batchPass" shiro:hasPermission="sysStore:checkStore">批量通过
        </button>
        <button class="layui-btn layui-btn-sm" lay-event="batchNoPass" shiro:hasPermission="sysStore:checkStore">批量不通过
        </button>
    </div>
</script>
<script type="text/html" id="tool">
    <a class="layui-btn layui-btn-xs" lay-event="edit" shiro:hasPermission="sysStore:checkStore">通过</a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="edit"
       shiro:hasPermission="sysStore:checkStore">不通过</a>
    <!--<a class="layui-btn layui-btn-xs" lay-event="edit" shiro:hasPermission="sysStore:update">编辑</a>-->
    <!--<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" shiro:hasPermission="sysStore:delete">删除</a>-->
</script>

</body>
</html>
<script src="/layui/layui.all.js"></script>
<script src="/js/core.util.js"></script>
<script src="/js/store/list.js"></script>